using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class ConstraintRelation : IExtensibleDataObject
	{
		private ExtensionDataObject _extensionDataObject;
		[DataMember]
		public Guid ObjectId
		{
			get;
			set;
		}
		[DataMember]
		public string ConstraintType
		{
			get;
			set;
		}
		[DataMember]
		public string Constraints
		{
			get;
			set;
		}
		public ExtensionDataObject ExtensionData
		{
			get
			{
				return this._extensionDataObject;
			}
			set
			{
				this._extensionDataObject = value;
			}
		}
		public ConstraintRelation()
		{
		}
		public ConstraintRelation(Guid objectId, string constraintType, string constraints)
		{
			this.ObjectId = objectId;
			this.ConstraintType = constraintType;
			this.Constraints = constraints;
		}
	}
}
